/**
 * Copyright &copy; 2016 CNJSON All rights reserved.
 */
package com.hongsuan.pplive.modules.live.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.cnjson.db.service.CrudService;
import com.cnjson.db.persistence.Page;
import com.hongsuan.pplive.modules.live.dao.LiveGitConfigDao;
import com.hongsuan.pplive.modules.live.entity.LiveGitConfig;

/**
 * 单表生成Service
 * @author cgli
 * @version 2016-06-06
 */
@Service
@Transactional(readOnly = true)
public class LiveGitConfigService extends CrudService<LiveGitConfigDao, LiveGitConfig> {

	@Autowired
	private LiveGitConfigDao dao;
	
	public LiveGitConfig get(String id) {
		return super.get(id);
	}
	
	public LiveGitConfig getByCode(String code) {
		return dao.getByCode(code);
	}

	public List<LiveGitConfig> findList(LiveGitConfig liveGitConfig) {
		return super.findList(liveGitConfig);
	}

	public Page<LiveGitConfig> findPage(Page<LiveGitConfig> page, LiveGitConfig liveGitConfig) {
		return super.findPage(page, liveGitConfig);
	}

	@Transactional(readOnly = false)
	public void save(LiveGitConfig liveGitConfig) {
		super.save(liveGitConfig);
	}

	@Transactional(readOnly = false)
	public void delete(LiveGitConfig liveGitConfig) {
		super.delete(liveGitConfig);
	}

}